// ActionScript file
internal function randRange(min:int, max:int):int{
	var randomNum:int = Math.floor(Math.random() * (max - min + 1)) + min;
	return randomNum;
}

internal function removeArrayDataByIdx(source:Array,idx:int):void
{
	if (idx>=0 && idx<source.length) {
		source[idx] = source[source.length-1];
		source.length--;
	}
}